package com.lvcoding.cloud.user.conroller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
public class Oauth2Controller {

    @GetMapping("/")
    public String oauth2(Principal principal){
        return "hello " + principal.getName() + "，Welcom to springcloud-alibaba";
    }
}
